{extend name="base" /}
{block name="content"}
<div class="g-main">
    <div class="m-main-title">
        <div class="m-container-fluid">
            <a href="{:url('index/welcome')}"><i class="icon icon-home"></i>首页</a>
            <span class="icon-angle-right"></span>
            <span>系统</span>
            <span class="icon-angle-right"></span>
            <span>幻灯片</span>
            <span class="icon-angle-right"></span>
            <span>幻灯片管理</span>
            <span class="icon-angle-right"></span>
            <span>店铺选择</span>
            <a class="u-flush"><i class="icon-repeat"></i></a>
        </div>
    </div>
    <div class="m-main-content">
        <div class="m-container">
            <table class="m-table">
                <tr>
                    <th>
                        <div class="m-options cf">
                            <div class="m-search fr">
                                <form action="" class="layui-form">
                                 	
                                    <label for="keywords">关键词</label>
                                    <input type="text" name="keywords" id="keywords" class="u-ipt u-ipt-def" placeholder="请输入要查询的关键词" value="{$keywords}" />
                                    <input type="submit" class="u-btn u-search" value="查看" />
                                </form>
                            </div>
                        </div>
                    </th>
                </tr>
            </table>
            <form class="layui-form m-list-form">
                <table class="m-table mt-10">
                    <tbody class="datas">
                        <tr>
                            <th width="5%" style="text-align: center;">选择</th>
                            <th width="5%">ID</th>
                            <th width="20%">消息标题</th>
                            <th width="10%">发布时间</th>
                        </tr>
                        {foreach name="data" item="v"}
                        <tr>
                            <td align="center"><input type="radio" name="id" class="u-id" value="{$v.id}" lay-skin="primary" /></td>
                            <td>{$v.id}</td>
                            <td>{$v.title}</td>
                            <td>{$v.create_time}</td>

                        </tr>
                        {/foreach}

                    </tbody>
                </table>
            </form>
        </div>
    </div>
</div>
{/block}
{block name="extrajs"}
<script>
    function getdata(){
        var data={
            id:$("input[name='id']:checked").val(),
        };
        return data;
    }
</script>
{/block}